home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / System / Directory source / struct.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-28  |  1.1 KB  |  67 lines  |  [TEXT/KAHL]

  1. /*    windows.h
  2.  *
  3.  *    The various structures used by the drafting program for managing windows.
  4.  */
  5.  
  6.  
  7. #ifndef WINDOWSH
  8. #define WINDOWSH
  9.  
  10.  
  11.  
  12. /*    Structures
  13.  */
  14.  
  15.  
  16. /*    DirectData
  17.  *
  18.  *    Directory data
  19.  */
  20.  
  21. struct DirectData {
  22.     short indent;                            /* How far does this indent (in units of 12 pix) */
  23.     char data[42];                            /* Name of this object, and data (in Pascal form) */
  24.     char auxdata[20];                        /* Size of this object (auxdata) */
  25.     char auxdata2[20];                        /* File aux data */
  26. };
  27.  
  28.  
  29. /*    WindDraw
  30.  *
  31.  *    The windows used for drawing
  32.  */
  33.  
  34. struct WindDraw {
  35.     WindowRecord w;
  36.     short inuse;
  37.     
  38.     /* Controls */
  39.     ControlHandle yScroll;                    /* The two scroll bars in this window */
  40.     
  41.     /* Data */
  42.     short state;
  43.     struct DirectData **data;                /* Directory data handle */
  44.     short vRefNum;                            /* VRefNum of this volume */
  45.     char vName[64];                            /* Volume name (in C) */
  46. };
  47.  
  48.  
  49.  
  50.  
  51.  
  52. /*    Constants
  53.  */
  54.  
  55. #define    MAXWINDOWS            10                /* # of drawing windows that can be opened */
  56. #define WK_PLAN                10                /* Window kind of a drawing window */
  57. #define    WK_CONTROL            11                /* The Control window */
  58.  
  59.  
  60.  
  61.  
  62. /*    Globals
  63.  */
  64.  
  65. extern struct WindDraw *drawList;            /* The list of windows to bring up */
  66.  
  67. #endif